home *** CD-ROM | disk | FTP | other *** search
/ Hitachi Electronic Compon…s Databook 1996 November / HITACHI November 1996.iso / pc / tools / cdk_sh / disk6 / include / sys / config.h / config.h
Encoding:
C/C++ Source or Header  |  1995-02-03  |  905 b   |  41 lines

  1. /* exceptions first */
  2. #if defined(__H8300__) || defined(__H8500__)
  3. #define _FLOAT_ARG float
  4. #define __SMALL_BITFIELDS
  5. #define H8300 1
  6. #define __IEEE_BIG_ENDIAN
  7. #endif
  8.  
  9. /* 16 bit integer machines */
  10. #if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__)
  11. #undef INT_MAX
  12. #undef UINT_MAX
  13. #define INT_MAX 32767
  14. #define UINT_MAX 65535
  15. #endif
  16.  
  17. #ifdef ___AM29K__
  18. #define _FLOAT_RET double
  19. #endif
  20.  
  21. #ifdef __i386__
  22. #ifndef __unix__
  23. /* in other words, go32 */
  24. #define _FLOAT_RET double
  25. #endif
  26. #endif
  27.  
  28. #ifdef __m68000__
  29. /* This is defined in machine/ieeefp.h; need to check is it redundant here? */
  30. #define __IEEE_BIG_ENDIAN
  31. #endif
  32.  
  33. /* ... and if there were no exceptions, the normal case. */
  34. /* FIXME: How does this jive with _ansi.h? */
  35. #ifndef _FLOAT_ARG
  36. #define _FLOAT_ARG double
  37. #endif
  38. #ifndef _FLOAT_RET
  39. #define _FLOAT_RET float
  40. #endif
  41.